package com.guli.eduService;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author zxc
 * @date 2023/03/27 16:41
 **/
@SpringBootApplication
// 设置包扫描规则
@ComponentScan(basePackages = {"com.guli"})
@EnableTransactionManagement // springboot中允许事务
@EnableAsync(proxyTargetClass = true)
@EnableDiscoveryClient // 允许当前项目被nacos注册中心发现
@EnableFeignClients // 允许进行微服务调用
@EnableHystrix // 允许熔断机制
public class SpringBootApplicationStarter {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootApplicationStarter.class , args);
    }
}
